package com.z.sys.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class MenuVo implements Serializable {
    /**
     * 标题
     */
    private String title;

    /**
     * 菜单类型
     */
    private String type;

    /**
     * 打 开 类 型
     */
    private String target = "_self";

    /**
     * 图标
     */
    private String icon;

    /**
     * 跳转路径
     */
    private String href;

    /**
     * 子菜单
     */
    private List<MenuVo> child = new ArrayList<>();

    public MenuVo(String title, String target, String icon, String href) {
        this.title = title;
        if("0".equals(target)){
            this.target = "_blank";
        }
        this.icon = icon;
        this.href = href;
    }
}
